<?php

namespace App\Http\Controllers\Api\Hotel;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Facades\Services\HotelGuideService;

class HotelGuideController extends Controller
{
    public function getHotelGuide(){
    	return formatJsonResponse(HotelGuideService::getHotelGuide());
    }

    public function updateHotelGuide(Request $request){

    	$rules = [
    		'content' => 'required'
    	];

    	$this->validate($request,$rules);

    	HotelGuideService::updateHotelGuide($request->all());

    	return formatJsonResponse();
    }

    public function createHotelGuide(Request $request){
    	$rules = [
    		'content' => 'required'
    	];

    	$this->validate($request,$rules);

    	HotelGuideService::createHotelGuide($request->all());

    	return formatJsonResponse();
    }
}
